package Queue;

import java.util.LinkedList;
import java.util.Queue;

/**
 * User:辰柒
 * Date:2022-10-02
 * Time:16:41
 */
public class TestDemo1 {
    public static void main(String[] args) {
        Queue<Integer> queue = new LinkedList<>();
        queue.offer(1);
        queue.offer(2);
        queue.offer(3);
        queue.offer(4);
//        System.out.println(queue.size());
//        boolean b1 = queue.isEmpty();
//        System.out.println(b1);
//        System.out.println(queue);
//        queue.poll();
//        queue.poll();
//        System.out.println(queue);
//        int s = queue.peek();//获取队头元素但是不删除
  //      System.out.println(s);
//        System.out.println(queue.isEmpty());
//        System.out.println(s);
    }
}
